package movie.alipay;
import org.springframework.stereotype.Component;

/**
 * alipay的配置文件 
 * @author CQUDJ
 *
 */

@Component
public class AlipayProperties {
	// 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
	public static final String APP_ID = "2019063065727248";
	// 商户私钥，您的PKCS8格式RSA2私钥
	public static final String PRIVARY_KEY ="MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCddsT/NO0xq3McIlJ/s//VQSb3W6IKPBt6wc6Lf2n7WOvarftLMQN7tfx+jnEoqmrr2RKhgTMg8cK+CrEv8OkKqmvbiCnE8KnumgtJomLgpK4LpLL3yQnZytxyedW3ubTwUlatZyRIzMHLWP5BZAOqUurk4cCXV1Ly9UCYfTFkWBHyfZMtuu4c8JqQYGxo3Bgdo70rddhptfgwWpcwIivt4TlLx1rm+ODEl6kh+805tnf5/Jwjk0NoF4IVRHv5QNWbUrUE+KTeGp/RC7RiV5+uSXQ3CB/0QI2arLtHk/uh+dwpskmP9/1b8cIxb3zMi1DiqqlA2jwveLZ2yQGfx/C/AgMBAAECggEBAJu/mXTwrdheRDpEvKMxsFAH5HnwOeOztl6CikCyo2qIdqlTQ2cJMO/RftDTJZxai+2CRYpX1/GzD7OXsdDAklEJZiu7j80LWpn15kpMA089tCUyIA8027h/jfLxDXJvjkfSuYdEqMAVP25aNQsK2RFEeLAxl6RaLGLCMMVjt1IOt/0nRnFCdGl58xuaMpBxYbXGPId8wU6lTGUMj1cbrPsVLNBPc9AhnjKiIOZTPhgL+PETsrgp43jNOR4y1SAXIoS+FFsoYoprs9Z8K9rK9ya3/tXewLy1lihoHfyppVR1X+a2Pu8nVh/gWrYVg9ypYImT5+LHm8amRmaShqD/+XkCgYEA2ox9CneT/Yh/22kvnhD1DpYzyA6xRwmwu1WBGbMS466mvlscggDgem0+1PvpyyBYXMUTlQN9ZLyRKg4vgDV1hx/rMWXRIAh8YH9TfNQL9J3iBtn98JtlrpIPpGpAGRWxYlTxM+nQIVy7CrgmBR0XOkGFX4glPx0Qx+QAcbkEmrMCgYEAuHKNOPR7pNKDRCYNVF6Ll7A3ltBonHeDDz96zmO2rF5S7iQIpQQCSGm9u6ZiPSKAevSJGCOcE9LgP4FcmehSyTRT9Q3YENjEx2B5TPwDbexvGSyx8v1JhFUAkYk09m6O+9jIJ7IEoJeMg9kP/ahpPDPWZ44c3NJTaFwhay32B8UCgYAn+ThJuNNttRDFvfiCrdFUyK5R8jYEq0YTDbGeVL2ovWIsQRf2w1hLrD2o0SbTC2h+F2HciJXf3gmjKpMPnTeQ7oqjL19Pv52YPNG1bEd/h303CZpD7vhrNLX9uZ1duTUHqkev2h1CbOadME9r8gU0l5VggtNlNtjB5vcZ1eB8twKBgDiQWKK4xxo6vKqviLLw85onHkUP0KT7OaP5ca3Ngn3Fx2TkhAom+pQ+aUMcuU/KPuB2EXznnrutlbuj7kP8rTaq53xlLHeuIlqKSWjEeEDDmyZ7QG8mId+FOdFn5GgWa57sUiVqQGUHVL4yWOcPOIaP1xaWzF8j2RRN/KmjxKmJAoGAd6R8dcPZiBYZf1jJFlz5qcfRw/eZ2IidRtVzJCfDvwh1AMZ6IyvooKp/m9FxVIeIfaKitj/Hk1zUv0m4yVDvbTL8tFlqZ2Y6pgkvmJdK63mXFPX0gipfAJi6SUnH2dj7Vh1Yy7V7HBEc6zRBeqN+4VU5/OaMLs4+EWk+/gf3wXI";
	// 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
	public static final String PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh76/79saDzPrH+v0JxGVW7+gDqj8h4N2UrBFYKz6JbgcG7zNqrwaW4RF9iQ3p3O0jWMJQWb/VufWpDFYU5hJIf1Sj8Uz0Ip1NFTEz8E5/llEhmb+zx7tw12nBDVL72U7Z6lE7nbIOHOpC06yNzK6ExAIJjLMJZHLYnPkkoFeDhGqNV0ki+lAzc1o/adG/YOazPdYwnDpuMS0PmbUwWEoQgFKkxm0ZfYGMrcrHAYSbNd/q6nBsnhw4SqgqZlnKNW0ZKVhF1RUrC/NB2SzphZe6p4JrQ2mwBKG4ZyKeQuO8pKfZONEnzO0qBJN/uHTGCER9eQsH+cRVihm469H+B9zNwIDAQAB";
	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static final String NOTIFY_URL = "http://外网ip:端口/error.html";
	// 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static final String RETURN_URL = "http://外网ip:端口/sccess.html";
	// 签名方式
	public static final String SIGN_TYPE = "RSA2";
	// 字符编码格式
	public static final String CHARSET = "utf-8";
	// 支付宝网关
	public static final String GATEWAY_URL = "https://openapi.alipaydev.com/gateway.do";
	// 支付宝网关
	public static final String LOG_PATH = "C:\\";	
	/**
	 * 获取配置参数值
	 * @param key
	 * @return
	 */
	public static String getAppId() {
		return APP_ID;
	}
	public static String getPrivaryKey() {
		return PRIVARY_KEY;
	}
	public static String getPublicKey() {
		return PUBLIC_KEY;
	}
	public static String getNotifyUrl() {
		return NOTIFY_URL;
	}
	public static String getReturnUrl() {
		return RETURN_URL;
	}
	public static String getSignType() {
		return SIGN_TYPE;
	}
	public static String getCharset() {
		return CHARSET;
	}
	public static String getGatewayUrl() {
		return GATEWAY_URL;
	}
	public static String getLogPath() {
		return LOG_PATH;
	}
	
}

